<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\BankCard
 *
 * @property int $id
 * @property string|null $card_id
 * @property string|null $card_name
 * @property string $cert_type id
 * @property string|null $cert_number
 * @property string|null $phone
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @method static \Database\Factories\BankCardFactory factory(...$parameters)
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard query()
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard whereCardId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard whereCardName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard whereCertNumber($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard whereCertType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard wherePhone($value)
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard whereUpdatedAt($value)
 * @mixin \Eloquent
 * @property int $user_id
 * @property-read \App\Models\Freelance|null $freelance
 * @property-read \App\Models\User|null $user
 * @method static \Illuminate\Database\Eloquent\Builder|BankCard whereUserId($value)
 */
class BankCard extends Model
{
    use HasFactory;

    protected $guarded = ['id'];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
